% lets plot all images for n_actors = 5
index = 1;
for expt = 1:,4,
    for density 1:3,
    z = zeros(21,21);
        for c = 1:21
            for d = 1:21
              row = p5((expt-1)*441*3 + (density-1)*441 + (c-1)*21 + d, 11:18)
              [v,t] = max(row);
              z(i, j) = t;
            end
        end
        subplot(4,3, index)
        image(flipud(z(:,1)*31);
        index = index + 1;
    end
end
